export interface User {
  id: number
  username: string
  real_name: string
  password?: string
  phone?: string | null
  email?: string | null
  status: number
  create_time?: string
  update_time?: string
}

export interface UserCreatePayload {
  username: string
  real_name: string
  password: string
  phone?: string
  email?: string
  status?: number
}

export interface UserUpdatePayload {
  real_name?: string
  password?: string
  phone?: string
  email?: string
  status?: number
}

export interface Role {
  id: number
  role_code: string
  role_name: string
  role_desc?: string | null
  status: number
  create_time?: string
  update_time?: string
}

export interface RolePayload {
  role_code: string
  role_name: string
  role_desc?: string
  status?: number
}

export interface UserRole {
  id: number
  user_id: number
  role_id: number
  create_time?: string
}
